use "/Users/sokolins/Dropbox/Ideas/PortfolioManagersSalariesUpdated/JFQA Replication Package May 2025/Code/rep_data", clear


************************************************
***Baseline REGRESSIONS WITH FIRM-YEAR FE

//All vars
local y "del_salary"

local team_skill " l_skill l_teamskill"  
local team_visibility " l_visibility l_t_visibility" 
local manager_vars "l_revenue l_manager_age l_fund_exp extra_role l_nfunds equity"
local team_vars "l_team_fund_exp l_team_size l_team_manager_age team_equity_share"


//salary growth

local y "del_salary"

qui reghdfe `y' teams `team_skill' `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon replace ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep (teams `team_skill' `team_visibility') ///

  
qui reghdfe `y' teams  `team_visibility' `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
 addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep (teams `team_skill' `team_visibility')  ///


qui reghdfe `y' teams `team_skill' `team_visibility' `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep (teams `team_skill' `team_visibility')  ///
  
//revenue growth

local y "del_revenue"

qui reghdfe `y' teams `team_skill' `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
 addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep (teams `team_skill' `team_visibility') ///

  
qui reghdfe `y' teams  `team_visibility' `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep (teams `team_skill' `team_visibility')  ///


qui reghdfe `y' teams `team_skill' `team_visibility' `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Manager Characteristics, Yes, Team Characteristics, Yes,Firm*Year  FE, Yes, Manager FE, Yes) keep (teams `team_skill' `team_visibility')  ///

  


seeout using "results.txt"
*********************************************

